package com.tju.backend.plugin.web_socket;

import org.tio.utils.time.Time;

/**
 * @USER: CLS
 */
public abstract class TioServerConfig {
    /**
     * 协议名字(可以随便取，主要用于开发人员辨识)
     */
    public static final String PROTOCOL_NAME = "showcase";

    public static final String CHARSET = "utf-8";
    /**
     * 监听的ip
     */
    public static final String SERVER_IP = null;//null表示监听所有，并不指定ip

    /**
     * 监听端口
     */
    public static final int SERVER_PORT = 5231;

    /**
     * 心跳超时时间，单位：毫秒
     */
    public static final int HEARTBEAT_TIMEOUT = 0;

    /**
     * ip数据监控统计，时间段
     *
     * @author cls
     */
    public interface IpStatDuration {
        //        Long DURATION_1 = Time.MINUTE_1 * 5;
        Long DURATION_1 = Time.MINUTE_1;
        Long[] IPSTAT_DURATIONS = new Long[]{DURATION_1};

    }

}
